Component({
  data: {},

  lifetimes: {
    ready() {
      this.triggerEvent('ready', {
        comp: this
      });
    }
  },

  methods: {
    getCompRect(callback) {
      const query = this.createSelectorQuery();
      query.select('.cus-view').boundingClientRect();
      query.exec(res => {
        callback(res[0]);
      });
    }
  }
});
